package top.wilbert.collegelink.positionresume.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import top.wilbert.collegelink.positionresume.dao.PositionResumeDao;
import top.wilbert.collegelink.positionresume.entity.PositionResumeEntity;
import top.wilbert.collegelink.positionresume.service.PositionResumeService;
import top.wilbert.collegelink.common.utils.PageUtils;
import top.wilbert.collegelink.common.utils.Query;

import java.util.Map;


@Service("resumePositionService")
public class PositionResumeServiceImpl extends ServiceImpl<PositionResumeDao, PositionResumeEntity> implements PositionResumeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PositionResumeEntity> page = this.page(
                new Query<PositionResumeEntity>().getPage(params),
                new QueryWrapper<PositionResumeEntity>()
        );

        return new PageUtils(page);
    }

}